.drawer-overlay {
    position: absolute; /* 相对于父容器定位 */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-end;
    align-items: stretch;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.drawer {
    position: absolute; /* 相对于父容器定位 */
    top: 0;
    right: -300px;
    width: 100%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    padding: 20px;
}

.drawer-overlay.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.drawer.show {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.drawer-content {
    margin-top: 40px;
}
